package com.one.group.user.controller;

import com.one.group.result.Result;
import com.one.group.user.service.NoticeService;
import com.one.group.utils.ResultUtil;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author kld
 * @date 2025/10/19 18:34
 * @description TODO
 */
@RequestMapping("/notice")
public class NoticeController {

    @DubboReference
    private NoticeService noticeService;
    @GetMapping("/list")
    public Result list(){
        return ResultUtil.success(noticeService.list());
    }
}
